package com.youkeyi.ddy.cloud.common.api.application.system.doc;

import com.youkeyi.ddy.cloud.common.api.application.system.doc.dto.SystemDocCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.doc.dto.SystemDocListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.doc.param.SystemDocDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.doc.param.SystemDocListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.doc.param.SystemDocUploadCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * SystemDocCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2/27/23 10:47 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/doc/fallback")
public class SystemDocCloudServiceFallback implements SystemDocCloudService {

    @Override
    public SystemDocCloudDto upload(HttpServletRequest request) {
        return new SystemDocCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemDocListCloudDto list(SystemDocListCloudParam param) {
        return new SystemDocListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(SystemDocDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
